package com.example.treasure_back.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.treasure_back.mapper.ChatroomMapper;
import com.example.treasure_back.model.ChatroomModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChatroomService {
    @Autowired
    private ChatroomMapper chatroomMapper;

    public List<ChatroomModel> getChatroomList(){
        QueryWrapper<ChatroomModel> queryWrapper = new QueryWrapper<>();
        return chatroomMapper.selectList(queryWrapper);
    }
}
